class NewbooksController < ApplicationController
  def new
    @user = current_user
    @categories = Category.all
    @books = Kaminari.paginate_array(Book.search_new_book_in_week()).page(params[:page]).per(3)
  end
end